<?php 
	$personaFamiliar = (isset($persona->familiares[0]))?$persona->familiares[0]:new PersonaFamiliar();
?>
<div class="width_half">
<?php 
	echo $form->labelEx($personaFamiliar,'personafamiliar_apellido');
	echo $form->textField($personaFamiliar,'personafamiliar_apellido');
	echo $form->error($personaFamiliar,'personafamiliar_apellido');
?>
</div>

<div class="width_half">
<?php 
	echo $form->labelEx($personaFamiliar,'personafamiliar_nombres');
	echo $form->textField($personaFamiliar,'personafamiliar_nombres');
	echo $form->error($personaFamiliar,'personafamiliar_nombres');
?>
</div>

<div class="width_half">
<?php 
	echo $form->labelEx($personaFamiliar,'personafamiliar_familiar_persona_numerodocumento');
	echo $form->dropDownList(
    							$personaFamiliar,
                                'personafamiliar_familiar_persona_tipodocumento_id',
                                CHtml::listData(
                                					TipoDocumento::model()->findAll(),
                                					'tipodocumento_id',
													'tipodocumento_abreviacion'
                                                   ),
                                                        array('class'=>'width_quarter')
											);
	echo $form->textField($personaFamiliar,'personafamiliar_familiar_persona_numerodocumento',array('maxlength'=>50, 'class'=>'width_3_quarter','style'=>'width:66%'));
	echo $form->error($personaFamiliar,'personafamiliar_familiar_persona_numerodocumento');
?> 
</div>

<div class="width_half">
<?php 
	echo $form->labelEx($personaFamiliar,'personafamiliar_parentesco_id');
	echo $form->dropDownList(
    							$personaFamiliar,
                                'personafamiliar_parentesco_id',
                                CHtml::listData(
                                					Parentesco::model()->findAll(),
                                					'parentesco_id',
													'parentesco_nombre'
								)
	);
	echo $form->error($personaFamiliar,'personafamiliar_parentesco');
	?>
</div>


<div class="width_half">
<?php 
	echo $form->labelEx($personaFamiliar,'personafamiliar_telefono');
	echo $form->textField($personaFamiliar,'personafamiliar_telefono');
	echo $form->error($personaFamiliar,'personafamiliar_telefono');
	?>
</div>

<div class="width_half">
<?php 
	echo $form->labelEx($personaFamiliar,'personafamiliar_celular');
	echo $form->textField($personaFamiliar,'personafamiliar_celular');
	echo $form->error($personaFamiliar,'personafamiliar_celular');
	?>
</div>

<div class="width_half">
<?php 
	echo $form->labelEx($personaFamiliar,'personafamiliar_email');
	echo $form->textField($personaFamiliar,'personafamiliar_email');
	echo $form->error($personaFamiliar,'personafamiliar_email');
	?>
</div>